﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Model
{

    [MetadataType(typeof(Information_Channel_Metadata))]
    [DisplayName("栏目")]
    public partial class Information_Channel
    {
        public Information_Channel()
        {
            this.Id = Guid.NewGuid();
        }
        public class Information_Channel_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [DisplayName("名称")]
            public string DisplayName { get; set; }

            [DisplayName("缩写")]
            public string Abbreviate { get; set; }

            [HiddenInput]
            public int lft { get; set; }

            [HiddenInput]
            public int rgt { get; set; }

            [HiddenInput]
            public int lvl { get; set; }

            [HiddenInput]
            [DisplayName("上级")]
            public Guid? LastId { get; set; }

            [DisplayName("链接")]
            [DisplayFormat(ConvertEmptyStringToNull = false)]
            public string Link { get; set; }

            [DisplayName("栏目模板")]
            public Guid ChannelTemplateId { get; set; }

            [DisplayName("内容模板")]
            public Guid ContentTemplateId { get; set; }

        }
    }
}
